home *** CD-ROM | disk | FTP | other *** search
- ; *******************************************************
- ; Example 1 - Open a browser with the form example, get reference to form, select
- ; each radio button byValue, then deselect the last item leaving none selected.
- ; Note: You will likely need to scroll down on the page to see the changes
- ; *******************************************************
- ;
- #include <IE.au3>
- $oIE = _IE_Example ("form")
- $oForm = _IEFormGetObjByName ($oIE, "ExampleForm")
- For $i = 1 To 5
- _IEFormElementRadioSelect ($oForm, "vehicleAirplane", "radioExample", 1, "byValue")
- Sleep(1000)
- _IEFormElementRadioSelect ($oForm, "vehicleTrain", "radioExample", 1, "byValue")
- Sleep(1000)
- _IEFormElementRadioSelect ($oForm, "vehicleBoat", "radioExample", 1, "byValue")
- Sleep(1000)
- _IEFormElementRadioSelect ($oForm, "vehicleCar", "radioExample", 1, "byValue")
- Sleep(1000)
- _IEFormElementRadioSelect ($oForm, "vehicleCar", "radioExample", 0, "byValue")
- Sleep(1000)
- Next
-
- ; *******************************************************
- ; Example 2 - Open a browser with the form example, get reference to form, select
- ; each radio button byIndex, then deselect the last item leaving none selected.
- ; Note: You will likely need to scroll down on the page to see the changes
- ; *******************************************************
- ;
- #include <IE.au3>
- $oIE = _IE_Example ("form")
- $oForm = _IEFormGetObjByName ($oIE, "ExampleForm")
- For $i = 1 To 5
- _IEFormElementRadioSelect ($oForm, 3, "radioExample", 1, "byIndex")
- Sleep(1000)
- _IEFormElementRadioSelect ($oForm, 2, "radioExample", 1, "byIndex")
- Sleep(1000)
- _IEFormElementRadioSelect ($oForm, 1, "radioExample", 1, "byIndex")
- Sleep(1000)
- _IEFormElementRadioSelect ($oForm, 0, "radioExample", 1, "byIndex")
- Sleep(1000)
- _IEFormElementRadioSelect ($oForm, 0, "radioExample", 0, "byIndex")
- Sleep(1000)
- Next